public class DEV511_S99Extensions {

    public DEV511_S99Extensions(ApexPages.StandardController controller) {
        Document d = (Document) controller.getRecord();
        d.folderid = UserInfo.getUserId();
    }

}